package com.juyu.miliao.scheduler.rabbitMQ;

import org.springframework.amqp.rabbit.annotation.Exchange;
import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.QueueBinding;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 测试消费者MQ
 */
//@Component
public class TestMQCustomer {

//    @RabbitListener(bindings = @QueueBinding(value = @Queue("testMQCustomerQueue"),
//            exchange = @Exchange("testExchange"),
//            key = "testRoutingKey"))
//    public void testMQ(String str){
//        System.out.println("---------++++++_______~~~~~~~"+str);
//    }
}
